var fs=require('fs');

var read=fs.createReadStream('./read.txt');
var write=fs.createWriteStream('./write.txt');

read.on('data', function (data) {
    write.write(data);
});